package com.lening.community.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.lening.community.pojo.House;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @ToDo:
 * @Author：潘万法
 * @date: 2024/6/3 17:06
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class HouseVo extends House {
    private Long hid;               //房屋序号
//    private Long buildingId;        //楼宇名称 楼宇管理的外键id
    private Long unitId;            //单元数id   楼宇管理的外键

    private String roomNumber;      //房间号
    private BigDecimal pulicArea;         //公摊面积
    private BigDecimal buildArea;         //建筑面积
    private BigDecimal useArea;           //使用面积
    private Long typeId;            //房屋类型  外键
    private Long houseStatuId;      //房屋状态
    private String houseToward;     //房屋朝向
    private Long storeRoomNum;      //储藏室号
    private Long carNum;            //车位号
    private String shi;             //几室
    private String ting;            //几厅
    private String wei;             //几卫
    private Long deleteId;            //1删除   0未删
    private String remarks;        //备注



    private Long oid;               //储藏室序号
    private Long buildNameId;       //楼宇名称
    private Long communityId;   //社区id
    private String fllorNum;          //楼层数
    private String storeNum;          //储藏室编号

    private String communityName;   //社区名称
    private String houseStatu;  //房屋状态
    private Long yid;              //绑定业主
    private String buildingName;   //楼宇名称
    private String buildUse;   //楼宇用途，房屋类型
    private String unitName;      //单元数


    /**
     * 业主
     */
    @ExcelProperty("昵称")
    private String name;
    @ExcelProperty("房产名称")
    private String homeName;
    @ExcelProperty("业主姓名")
    private String ownerName;
    @ExcelProperty("民族")
    private String nation;
    @ExcelProperty("手机号")
    private String phone;
    @ExcelProperty("身份证号")
    private String peopleCard;
    @ExcelProperty("出生日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthday;
    @ExcelProperty("婚姻状态")
    private String maritalState;
    @ExcelProperty("户口类型")
    private String reType;
    @ExcelProperty("现住地址")
    private String address;
    @ExcelProperty("类型")
    private String type;
    @ExcelProperty("性别")
    private String sex;
    @ExcelProperty("户籍所在地")
    private String reAddress;
    @ExcelProperty("政治面貌")
    private String politics;
    @ExcelProperty("居住类型")
    private String dwellType;
    @ExcelProperty("居住证号")
    private String dwellCard;
    @ExcelProperty("创建日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @ExcelProperty("id")
    private Integer rid;
    private String status;
    private Long unitCount;      //单元数
    private String rname;
    private String rsex;
    private String raddress;
    private String relation;
    private String rphone;
    private Long id;
    private String mname;
    private String mphone;
    private String mrelation;
    private String mcardNum;
    private Integer mid;
    //private String communityName;   //社区名称
    @ExcelProperty("车库名称")
    private Long garageNameId;      //车库名称
    @ExcelProperty("车位区域")
    private String parkingSpace;    //车位区域
    @ExcelProperty("车位号")
    private String parkingSpaceNum; //车位号
    @ExcelProperty("车位状态")
    private String parkingSpaceStatu; //车位状态  0使用中  1未使用
    @ExcelProperty("车位面积")
    private Long parkingSpaceAreaId; //车位面积和社区那边的车位面积是外键
    @ExcelProperty("建筑结构外键")
    private String buildingStructureId;//建筑结构外键
    @ExcelProperty("车库区域")
    private String garageArea;      //车库区域
    @ExcelProperty("车库类别")
    private String garageType;      //车库类别
    @ExcelProperty("起始编号")
    private Long satartNum;           //起始编号
    @ExcelProperty("结束编号")
    private Long finshNum;         //结束编号
    @ExcelProperty("前缀名称")
    private String onName;         //前缀名称

}
